/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function SearchValidation(form){
    var ck_search = /^[A-Za-z0-9 ]{0,45}$/;
    var isValid = true;
    
   if (!ck_search.test(form.search.value)) {
        form.search.value = 'Enter a valid search item.';
        isValid = false;
    }
    
    return isValid;
}

